package com.fileoperation;

import com.fileoperation.model.StateChangedEvent;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by Administrator on 2016-12-26.
 */

public class BaseSetting {
    private boolean isAutoMode = true;
    private static BaseSetting instance = new BaseSetting();

    public static BaseSetting getInstance() {
        return instance;
    }

    public boolean isAutoMode() {
        return isAutoMode;
    }

    public void setAutoMode(boolean autoMode) {
        isAutoMode = autoMode;
    }

    private boolean isUsbAvailable = false;

    public boolean isUsbAvailable() {
        return isUsbAvailable;
    }

    public void setUsbAvailable(boolean usbAvailable) {
        isUsbAvailable = usbAvailable;
        EventBus.getDefault().post(new StateChangedEvent());
    }
}
